package com.haiyi.software.app;

import java.io.File;

import com.polites.android.GestureImageView;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;

public class ActivityStandardImage extends Activity {

	private GestureImageView gimage;

	private String str_imgSrc;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO 自动生成的方法存根
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.standard_image);

		initParam();

		initComp();

		initData();
	}

	private void initData() {

		Bitmap bitmap = BitmapFactory.decodeFile(str_imgSrc);

		//Log.i("BITMAP", bitmap.toString());

		this.gimage.setImageBitmap(bitmap);

	}

	private void initComp() {
		// TODO 自动生成的方法存根
		this.gimage = (GestureImageView) this.findViewById(R.id.gimage);
	}

	private void initParam() {
		// TODO 自动生成的方法存根
		str_imgSrc = getIntent().getStringExtra("image");
	}
}
